package com.cloudbroker.bcs.platform.ltb.middle.service;
import com.cloudbroker.bcs.common.service.base.ServiceBase;
import com.cloudbroker.bcs.platform.ltb.middle.entity.CombinationEntity;

/**
 * Created by tianrui on 2016/7/22.
 */
public interface CombineService extends ServiceBase<CombinationEntity, String>{

    /**
     * 组合申请
     * */
    public void addCombineInfo(CombinationEntity combinationEntity);

    /**
     * 组合关注
     * */
    public void combineFocus(CombinationEntity combinationEntity);

    /**
     * 组合关注取消
     * */
    public void combineFocusCancel(CombinationEntity combinationEntity);


    /**
     * 根据code获取combination
     * */
    public CombinationEntity getCombinationByCode(String code);

    /**
     * 根据组合名称查询同一券商是否有重复名称
     * */
    public int combineNameIsExist(String codeName);


    /**
     * 更新组合信息
     * @param combinationEntity
     */
    public void upCombination(CombinationEntity combinationEntity);

}
